import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import first from '../views/first/first.vue'
import follow from '../views/follow/follow.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
	children:[
		{
			path: '/',
			name: 'first',
			component: first,
		},{
			path: 'follow',
			name: 'follow',
			component: follow,
		}
	]
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
